package API.DAY1;

public class ValueOfDemo {//转为字符串
    public static void main(String[] args) {
        int a = 123;
        System.out.println(String.valueOf(a));
//        System.out.println((String.valueOf(a).getClass()));
        double b = 123.123;
        System.out.println(String.valueOf(b));
//        System.out.println((String.valueOf(b).getClass()));
        String c = b+"";
        System.out.println(c);
    }
}
